#include <stdio.h>

#if 0
    enum Week
    {
        Monday = 2,    //依次往后+1（不赋值的话默认从0开始）
        Tuesday,
        Wednesday = 10,
        Thursday,
        Friday,
        Saturday,
        Sunday
    };

    int main()
    {
        enum Week w = 3;
        printf("%d\n", w);
        printf("%ld\n", sizeof(w));

        return 0;
    }
#endif

#if 1
enum Choice
{
    Insert = 1,
    Delete,
    Find,
    Update,
    exit
};

void show()
{
    printf("1、插入\n");
    printf("2、删除\n");
    printf("3、查找\n");
    printf("4、更新\n");
    printf("5、退出\n");
}

int main()
{
    show(); 
    int choice = 0;
    scanf("%d", &choice);
    
    switch (choice) //在写多分支时，如果直接用12345去表示，那么代码可读性会很差
    {
    case Insert:
    case Delete:
    case Find:
    case Update:
    case exit:
    default:
        break;
    }

    return 0;
}
#endif